package com.pinda.service;

import com.github.pagehelper.PageInfo;
import com.pinda.auth.entity.PdAuthUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pinda.auth.entity.PdCoreOrg;
import com.pinda.auth.entity.PdCoreStation;
import com.pinda.auth.search.PdAuthUserSearch;
import com.pinda.auth.view.*;
import com.pinda.authorization.entity.User;
import com.pinda.base.entity.PdTruckDriver;
import com.pinda.commonutils.Page;
import com.pinda.commonutils.Result;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author 黄杰
 * @since 2023-06-13
 */
public interface IPdAuthUserService extends IService<PdAuthUser> {
    /**
     * TODO 分页条件查询所有用户
     *
     * @param page
     * @return PageInfo<PdAuthUser>
     */
    PageInfo<PdAuthUserView> findUserService(Page<PdAuthUserSearch> page);

    /**
     * 司机登录
     * @param user
     * @return
     */
    Result<DriverView> driverLogin(PdAuthUser user);

    /**
     * TODO 查询所有组织信息
     *
     * @return
     */
    List<PdCoreOrg> findPdCoreOrgService();

    /**
     * TODO 查询所有岗位信息
     *
     * @return
     */
    List<PdCoreStation> findCoreStationService();

    int CheckPasswordorUpdatePasswordService(PasswordView passwordView);

    List<User> listByIdsUser(List<Long> ids);
}
